<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">

<%@ include file="common.jsp" %>
<%            // Main Application Logic Comes Here
            ArrayList<Player> players = PlayerDAO.retrieveAllPlayers();
%>

<HTML>
    <c:set var="title" value="MIC Tycoon ~ Login Page"/>
    <%@ include file="htmlheader.jsp" %>

    <body>
        <div id="resolution">

            <%@ include file="header.jsp" %>

            <div class="content">
                
                <!-- show announcements -->
                <c:if test="${announcement!=null}">
                    <div id="announcement">
                        <p><c:out value="${announcement}"/></p>
                    </div>
                </c:if>

                <form method="post" action="/wargaming/login/Login.do">
                    <table>
                        <tr>
                            <td>Player Name:</td>
                            <td><input type="text" name="player_name"></td>
                        </tr>
                        <tr>
                            <td>Password:</td>
                            <td><input type="password" name="password" value="password1"></td>
                        </tr>
                        <tr>
                            <td colspan="2"><input type="submit" value="login"></td>
                        </tr>
                    </table>
                    ${error_message}
                </form>
            </div>
        </div>
    </BODY>
</HTML>